{extend name="public/world"}
{block name="title"}修改任务{/block}
{block name="style"}
<style>
.layui-layout-body {overflow: auto;}
</style>
{/block}
{block name="container"}
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
    <div class="layui-card" style="padding: 20px 0 0 0;min-height: 325px;">
        <div class="layui-form-item">
            <label class="layui-form-label label-required">任务名称</label>
            <div class="layui-input-inline" style="width:493px;">
                <input type="text" name="title" value="{$task.title}" lay-verify="required" placeholder="请输入任务名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label label-required">任务描述</label>
            <div class="layui-input-inline" style="width:493px;">
                <textarea name="description" lay-verify="required" placeholder="请输入内容" class="layui-textarea">{$task.description}</textarea>
            </div>
        </div>
        <!--div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <label class="layui-form-label label-required">所属泳道</label>
                    <div class="layui-input-inline">
                        <select name="swimlane_id" lay-filter="swimlane_id" lay-verify="required">
                            {volist name="swimlanes" id="swimlane"}
                            <option value="{$swimlane.id}"{if $task.swimlane_id==$swimlane.id} selected{/if}>{$swimlane.name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <label class="layui-form-label label-required">所属栏目</label>
                    <div class="layui-input-inline">
                        <select name="column_id" lay-filter="column_id" lay-verify="required">
                            {volist name="columns" id="column"}
                            {if $column.position < 3 }
                            <option value="{$column.position}"{if $task.column_id==$column.position} selected{/if}>{$column.title}</option>
                            {/if}
                            {/volist}
                        </select>
                    </div>
                </div>
            </div>
        </div-->
        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <label class="layui-form-label label-required">任务优先级</label>
                    <div class="layui-input-inline">
                        <select name="deep" lay-filter="deep" lay-verify="required">
                            {volist name="deeps" id="deep"}
                            <option value="{$key}"{if $task.deep==$key} selected{/if}>{$deep}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <label class="layui-form-label label-required">计划工时</label>
                    <div class="layui-input-inline" style="width:150px;">
                        <input type="text" name="time_estimated" value="{$task.time_estimated}" lay-verify="number" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">小时</div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">指派给</label>
            <div class="layui-input-inline">
                <select name="owner_id" lay-filter="owner_id" lay-verify="required">
                    {volist name="users" id="user"}
                    <option value="{$key}"{if $task.owner_id==$key} selected{/if}>{$user}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-front-submit" id="LAY-front-submit" value="确认">
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    //JavaScript代码区域
    layui.use(['form'], function() {
        var $ = layui.$;
    });
</script>
{/block}